//
//  MoviePhotoTableViewCell.m
//  product_B
//
//  Created by lanou on 16/5/31.
//  Copyright © 2016年 lanou. All rights reserved.
//

#import "MoviePhotoTableViewCell.h"

@implementation MoviePhotoTableViewCell

- (void)scrollViewWithArray:(NSArray *)photoArray{
    _scrollView.contentSize = CGSizeMake(150*photoArray.count-5, 0);
    for (int i = 0; i<photoArray.count; i++) {
        UIImageView *imageView = [[UIImageView alloc]initWithFrame:CGRectMake(i*150, 0, 145, 135)];
        [imageView sd_setImageWithURL:[NSURL URLWithString:photoArray[i]]];
        [_scrollView addSubview:imageView];
    }
    _scrollView.bounces = YES;
    _scrollView.pagingEnabled = NO;
    _scrollView.showsHorizontalScrollIndicator = NO;
}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
